﻿using System;
using System.Collections.Generic;
//using System.Linq;
using System.Text;
using PWMIS .DataMap .Entity ;

namespace WcfMail.Interface
{
    /// <summary>
    /// 数据服务接口
    /// </summary>
    public interface IDataService
    {
        /// <summary>
        /// 获取数据，结果将以系统消息的方式返回
        /// </summary>
        /// <param name="entity">要获取数据的目标类型</param>
        /// <param name="queryParas">获取数据操作可能需要的参数</param>
        /// <returns>承载数据的消息</returns>
        List<ISysMsg> GetData(EntityBase entity, QueryParameter[] queryParas);
        /// <summary>
        /// 保存（消息）数据
        /// </summary>
        /// <param name="msgData">消息数据对象</param>
        /// <param name="targetType">目标类型</param>
        /// <returns>操作结果</returns>
        //int SaveData(List<ISysMsg> msgData, Type targetType);
    }
}
